package com.huangliusong.demo3;

import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
@Repository
public class ProductService {

    @Resource
    private CategoryDao categoryDao;

    @Resource
    private ProductDao productDao;

    public void save(){
        categoryDao.save();
        System.out.println("ProductService。。。save。。。");
        productDao.save();
    }


}
